package com.xinzhi.savingpot.rminfo.controller;


import com.xinzhi.savingpot.rminfo.service.impl.VipServiceImpl;
import com.xinzhi.savingpot.util.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Api("会员")
@RequestMapping("/rminfoVip")
@CrossOrigin
public class VipController {

    @Autowired
    private VipServiceImpl vsi;

    @ApiOperation("会员整体查询")
    @GetMapping("/members")
    public BaseResponse GetVip(){

        return vsi.GetMembers();
    }

}
